<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:composite="http://java.sun.com/jsf/composite"
    xmlns:rss4jsf="http://hexiao.cn/rss4jsf">
    
  <!-- INTERFACE -->
  <composite:interface>
    <composite:attribute name="rssUrl"/>
    <composite:attribute name="header"/>
  </composite:interface>

  <!-- IMPLEMENTATION -->          
    <composite:implementation>
    	<div>	
			<rss4jsf:simpleRssOutput
	             url="#{cc.attrs.rssUrl}"
	             count="3"
	             channelVar="channel"
	             itemVar="item">
	             <f:facet name="header">
	             	<h3>#{cc.attrs.header}</h3>
	             </f:facet>
	             <f:facet name="item">
	                 <div class="wrapper" style="height: 120px;">
	                 	<div class="extra-box">
			                <div class="padding-top indent10">
			                	<h4><a href="#{item.url}" target="_new">#{item.title}</a></h4>
			                	<p>
		                    		<h:outputText value="#{item.body }" escape="false"/>
			                    </p>			                    
			                </div>
		                </div>	                	                     
	                 </div>
	             </f:facet>
	         </rss4jsf:simpleRssOutput>
	    </div>
  </composite:implementation>
</html>  